package practice07;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice07
 * @ClassName: Test
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/1 17:02
 * @Copyright 大牛版板所有
 */
public class Test {
    public static void main(String[] args) {
        Hero hero = new Hero();
        hero.health = 800;
        hero.name = "李小侠";
        hero.output();
        System.out.println("------------------------------------------------------------------------");

        Monster monster = new Monster();
        monster.health = 300;
        monster.name = "小龟";
        monster.type = "潜水型";
        monster.output();
        System.out.println("------------------------------------------------------------------------");

        Weapon weapon = new Weapon();
        weapon.name = "死神镰刀";
        weapon.aggressivity = 100;
        weapon.output();
    }
}
